"""生成器"""
__author__ = "张延强"

# 生成器
x_generator = (x*x for x in range(4))
for i in x_generator:
    print(i)

for i in x_generator:
    print(i)

